package com.sy.service.impl;

import com.sy.mapper.ArticleMapper;
import com.sy.model.Article;
import com.sy.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author songyi
 * @date 2020/6/21 0021 23:00
 * @description
 */
@Service
public class ArticleServiceImpl implements ArticleService {

    @Autowired
    private ArticleMapper articleMapper;

    @Override
    public List<Article> selectList(Integer offset, Integer limit) {
        return articleMapper.selectList(offset, limit);
    }

    @Override
    public int findCount() {
        return articleMapper.findCount();
    }
}
